#include "subwidget.h"

subwidget::subwidget(QWidget *parent) : QWidget(parent)
{
    this->setWindowTitle("第二窗口");
    b2.setParent(this);
    b2.setText("切换窗口");
    b2.move(50, 50);

    connect(&b2, &QPushButton::clicked, this, &subwidget::send_signal);
}
/*点击函数处理*/
void subwidget::send_signal()
{
    emit cliked_signals_funtion();
    emit cliked_signals_funtion(123, "你是狗吧");
}
